package com.blue.api;


import com.blue.model.LogResp;
import com.blue.model.UploadResp;

import okhttp3.RequestBody;
import retrofit2.Call;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.Multipart;
import retrofit2.http.POST;
import retrofit2.http.Part;

public interface Common {

    @Multipart// 单图上传
    @POST("/index/common/upload")
    Call<UploadResp> uploadImage(@Part("file" + "\";filename=\"" + "test.png") RequestBody file1);

    @POST("/index.php/index/people/upload_log")
    @FormUrlEncoded
    Call<LogResp> upload_log(@Field("uid") String uid, @Field("mac") String mac, @Field("lockcode") String lockcode, @Field("type") String type);

//    @POST("api/Index/updateApp")
//    @FormUrlEncoded
//    Call<AppUpdateResp> updateApp(@Field("version") int code);
}
